package model;

public class MP3TagData {
	private String album;
	private String year;
	private String interpret;
	private String songTitle;
	private byte[] frontCover;
	
	protected MP3TagData (String album, String year , String interpret, String songTitle, byte[] frontCover){
		this.album=album;
		this.year=year;
		this.interpret=interpret;
		this.songTitle=songTitle;
		this.frontCover=frontCover;
	}
	
	protected byte[] getFrontCover() {
		return frontCover;
	}
	
	protected void setFrontCover(byte[] frontCover) {
		this.frontCover = frontCover;
	}
	
	protected String getInterpret() {
		return interpret;
	}
	
	protected void setInterpret(String interpret) {
		this.interpret = interpret;
	}
	
	protected String getYear() {
		return year;
	}
	
	protected void setYear(String year) {
		this.year = year;
	}
	
	protected String getAlbum() {
		return album;
	}
	
	protected void setAlbum(String album) {
		this.album = album;
	}

	protected String getSongTitle() {
		return songTitle;
	}

	protected void setSongTitle(String songTitle) {
		this.songTitle = songTitle;
	}
	
	public boolean equals(Object o){
		if (!( o instanceof MP3TagData)) return false;
		MP3TagData temp=(MP3TagData) o;
		if (!(temp.album.equals(this.album))) return false;
		if (!(temp.interpret.equals(this.interpret))) return false;
		if (!(temp.frontCover.equals(this.frontCover))) return false;
		if (!(temp.songTitle.equals(this.songTitle))) return false;
		if (!(temp.year.equals(this.year))) return false;
		return true;
	}
}
